#ifndef DRV_PWM__
#define DRV_PWM__

#include "OpticalCar_hardware.h"


#define PWM_PERIOD      999
#define PWM_CCR_VAL     750


// ==== The pulse length of each output state =====
#define PWM_HIGH_LEV    PWM_PERIOD      /** Output high level*/
#define PWM_LOW_LEV     0               /** Output low level*/
#define PWM_PULSE       PWM_CCR_VAL     /** Output PWM pulse*/



void Car_PWM_Init(void);
void Car_PWM_A1_Output(uint16_t ccr_val);
void Car_PWM_A2_Output(uint16_t ccr_val);
void Car_PWM_B1_Output(uint16_t ccr_val);
void Car_PWM_B2_Output(uint16_t ccr_val);

#endif  // DRV_PWM__
